-
Notifications
You must be signed in to change notification settings - Fork 621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix wrong unit in Flask new semconv test #2645
Fix wrong unit in Flask new semconv test #2645
Conversation
instrumentation/opentelemetry-instrumentation-flask/tests/test_programmatic.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is the only test that has the same duration calculation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given this is now in seconds, isn't 10 seconds a bit too much for delta?
Do you mean in other instrumentations? If so, I think yes, that's right it might have other tests. For Flask, I believe this is the only one that uses new_semconv. I think the other tests in Flask are correct because they are using the default opt-in (old semconv), and the histogram unit is in |
Missed the |
Makes sense |
instrumentation/opentelemetry-instrumentation-flask/tests/test_programmatic.py
Outdated
Show resolved
Hide resolved
instrumentation/opentelemetry-instrumentation-flask/tests/test_programmatic.py
Outdated
Show resolved
Hide resolved
…_programmatic.py Co-authored-by: Riccardo Magliocchetti <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Description
Changes duration to be measured in seconds during the test since in stable semconv, the unit changed from ms to s and we are recording in seconds
Probably Fixes #2596